import {Injectable} from '@angular/core';
import {BaseHttpService} from "../base-http.service";
import {Observable} from "rxjs";

export interface PhysicalChemicalAddEdit {
  id?: number;
  boilingPoint: string;
  bombLow: string;
  bombUpper: string;
  densityAir: string;
  densityWater: string;
  fastEffect: string;
  fireHeat: string;
  fireTemperature: string;
  flashPoint: string;
  mac: string;
  meltingPoint: string;
}

@Injectable({
  providedIn: 'root'
})
export class PhysicalChemicalService {

  constructor(public http: BaseHttpService) {
  }

  editPhysicalChemical(param: PhysicalChemicalAddEdit): Observable<void> {
    return this.http.put('/identify/speciality', param, {needSuccessInfo: true});
  }


  getPhysicalChemicalDetail(id: number): Observable<PhysicalChemicalAddEdit> {
    return this.http.get(`/identify/speciality/${id}`)
  }

}
